import { createApp } from 'vue';
import { createRouter, createWebHistory } from "vue-router";
import AppVue from './App.vue';
import "./style.less";

import 'highlight.js/styles/stackoverflow-light.css';
import hljs from 'highlight.js/lib/core';
import dart from 'highlight.js/lib/languages/dart';
import hljsVuePlugin from "@highlightjs/vue-plugin";
hljs.registerLanguage('dart', dart);

/** @type {import('vue-router').RouteRecordRaw[]} */
const routes = [
  {
    path: "/var",
    component: () => import("./views/VarView.vue"),
  },
  {
    path: "/prop",
    component: () => import("./views/PropView.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

createApp(AppVue).use(router).use(hljsVuePlugin).mount("#app");
